import type { FilterItem } from '@/components/FilterBar/types'

export const exampleOptions1: FilterItem[] = [
  {
    label: '灰名单种类',
    prop: 'typeName',
    type: 'input',
    inputProps: {
      clearable: true
    }
  },
  {
    label: '更新时间',
    prop: 'lastUpdateTime',
    type: 'datePicker',
    span: 10,
    defaultValue: [],
    inputProps: {
      type: 'datetimerange',
      format: 'YYYY-MM-DD HH:mm',
      'start-placeholder': 'YYYY/MM/DD hh:mm',
      'end-placeholder': 'YYYY/MM/DD hh:mm',
      'range-separator': '至',
      defaultTime: [
        new Date(2000, 1, 1, 0, 0, 0),
        new Date(2000, 2, 1, 23, 59, 59)
      ],
      'value-format': 'YYYY-MM-DD HH:mm',
    }
  }

]

export const dialogOptions: FilterItem[] = [
  {
    label: '种类名称',
    prop: 'typeName',
    type: 'input',
    span: 24,
    defaultValue: '',
    inputProps: {
      clearable: true,
      placeholder: '请输入种类名称'
    }
  }
]

export const dialogEditOptions: FilterItem[] = [
  {
    label: '灰名单种类:',
    prop: 'typeName',
    type: 'input',
    span: 24,
    defaultValue: '',
    inputProps: {
      clearable: true
    }
  },
  {
    label: '更新时间:',
    prop: 'lastUpdateTime',
    type: 'datePicker',
    span: 24,
    isDisabled: true,
    inputProps: {
      clearable: true,
      format: 'YYYY-MM-DD HH:mm:ss'
    }
  }
]
